]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Check all modifiers for modifiers-scroll
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 26 May 2025 12:35:19 +0000 (14:35 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 27 May 2025 12:04:11 +0000 (12:04 +0000)
Same as the previous commit, but for non-touchpad scrolls.

Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/4129
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3725>

js/ui/windowManager.js

index 5175191d9f813a66fa16903e0ded182c69271cd0..b74d878e142fea5014b4536931f67e9821ab55d9 100644 (file)
@@ -883,7 +883,8 @@ export class WindowManager {
             if (this._workspaceAnimation.canHandleScrollEvent(event))
                 return Clutter.EVENT_PROPAGATE;
 
-            if ((event.get_state() & global.display.compositor_modifiers) === 0)
+            const {compositorModifiers} = global.display;
+            if ((event.get_state() & compositorModifiers) !== compositorModifiers)
                 return Clutter.EVENT_PROPAGATE;
 
             return this.handleWorkspaceScroll(event);